package com.ztesoft.report.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.ztesoft.report.base.entity.BaseEntity;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 谭宏伟
 * @since 2018-06-13
 */
@TableName("report_upload")
@Data
public class ReportUpload extends BaseEntity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.INPUT)
	private Integer id;
    /**
     * 名称
     */
	@TableField("name")
	private String name;
    /**
     * ip
     */
	@TableField("host")
	private String host;
    /**
     * 端口
     */
	@TableField("port")
	private String port;
    /**
     * 用户名
     */
	@TableField("username")
	private String username;
    /**
     * 密码
     */
	@TableField("password")
	private String password;
    /**
     * 推送路径
     */
	@TableField("upload_path")
	private String uploadPath;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ReportUpload{" +
			", id=" + id +
			", name=" + name +
			", host=" + host +
			", port=" + port +
			", username=" + username +
			", password=" + password +
			", uploadPath=" + uploadPath +
			"}";
	}
}
